package com.jprocms.module.cms.controller.portal.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotNull;

/**
 * 操作记录 Base VO，提供给添加、修改、详细的子 VO 使用
 * 如果子 VO 存在差异的字段，请不要添加到这里，影响 Swagger 文档生成
 */
@Data
public class OperateBaseVO {

    @Schema(description = "站点ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "27490")
    @NotNull(message = "站点ID不能为空")
    private Long siteId;

    @Schema(description = "用户ID", example = "18738")
    private Integer userId;

    @Schema(description = "ip")
    private String ip;

    @Schema(description = "cookie")
    private Long identityCookie;

    @Schema(description = "操作类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotNull(message = "操作类型不能为空")
    private Integer opeType;

    @Schema(description = "操作数据ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "30377")
    @NotNull(message = "操作数据ID不能为空")
    private Long opeDataId;

}
